package cz.boxdesign.library.web.decorator;

import org.displaytag.decorator.TableDecorator;

import cz.boxdesign.library.entity.Department;

public class DepartmentTableDecorator extends TableDecorator {

	public String getEditUrl() {
		Department d = (Department) getCurrentRowObject();
		return "<a href=\"/isLibrary/department/edit.do?departmentId=" + d.getId() + "\"><img src=\"/isLibrary/images/icons/edit_16.png\"/></a>";
	}

	public String getShowUrl() {
		Department d = (Department) getCurrentRowObject();
		return "<a href=\"/isLibrary/department/show.do?departmentId=" + d.getId() + "\"><img src=\"/isLibrary/images/icons/goto_16.png\"/></a>";
	}

}
